home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre2.z / postgre2 / ref / eatgrn next >
Encoding:
Text File  |  1992-08-27  |  356 b   |  13 lines

  1. #!/bin/sh
  2.  
  3. #
  4. # This script "eats" GRN include statements.  If you use it, you can print
  5. # POSTGRES documentation without GRN, although you will have no illustrations.
  6. # It can be used as a substitute for GRN in the print scripts.
  7. #
  8.  
  9. awk 'BEGIN {eat=0; unset=0} \
  10. /^\.GS.*/ {eat=1}\
  11. /^\.GE.*/ {unset=1} \
  12. /.*/ {if (!eat) print; if (unset) eat=0; unset=0;}'
  13.